<%--
ListMyMsgServlet1.jsp
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="header.jsp" %>
<center>
    <hr/>
    <img src='images/top.jpg' width='100%' height='120px'>
    <hr/>
</center>
<br/>
<center><img src='images/u6.png' height=70px><font size='+4' face='楷体' color='#7D26CD'><b>我的失物招领信息</b></font>
</center>
<hr/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='AddMsg'><img src='images/add.png' width='100px'/></a>
<center>
    <table border=1 width=90%>
        <tr bgcolor='#E0EEE0'>
            <td>照片</td>
            <td>失物信息</td>
            <td>信息类型</td>
            <td>发布人</td>
            <td>酬金</td>
            <td>发生区域</td>
            <td>联系人位置</td>
            <td>联系电话</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        <%
            List<Msg> list = (List<Msg>) request.getAttribute("list");
            for (Msg g : list) {
                out.println("<tr>");
                out.println("<td style='width:110px;height:110px'>");
                out.println("<img src='images/pho/" + g.getPhoto() + ".jpg' width='200' height='220'/>");
                out.println("</td>");
                out.println("<td>");
                out.println(g.getName());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getType());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getPeople());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getMoney());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getArea());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getXiaoqu());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getTel());
                out.println("</td>");
                out.println("<td>");
                out.println(g.getFlag());
                out.println("</td>");
                out.println("<td>");
                out.println("<a href='UpdateServlet?mid=" + g.getMid() + "'>更新</a>");
                out.println("<a href='DeleteMsgServlet?mid=" + g.getMid() + "'>删除</a>");
                out.println("</td>");
                out.println("</tr>");
            }
        %>
    </table>
</center>
<%@ include file="footer.jsp" %>
